"use client"
import { AntdRegistry } from '@ant-design/nextjs-registry';
import type { Metadata } from 'next';
import{Provider} from 'react-redux'
import { store } from './store/index';
import { useEffect } from 'react';
import zhCN from 'antd/locale/zh_CN';
// for date-picker i18n
import 'dayjs/locale/zh-cn';
export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="zh-CN">
      <body style={{margin:"0",padding:"0",backgroundColor:"white"}}>
        <Provider store={store}>
          {children}
        </Provider>
      </body>
    </html>
  );
}
